<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: Animation类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_animation-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Animation类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>帧动画  
 <a href="class_animation.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_animate_8h_source.html">Animate.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a401b68793d4fbf48d481c030ee4b2a16"><td class="memItemLeft" align="right" valign="top"><a id="a401b68793d4fbf48d481c030ee4b2a16"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a401b68793d4fbf48d481c030ee4b2a16">~Animation</a> ()</td></tr>
<tr class="memdesc:a401b68793d4fbf48d481c030ee4b2a16"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:a401b68793d4fbf48d481c030ee4b2a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4075d2ed258206ffd210dacfea81de88"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a4075d2ed258206ffd210dacfea81de88">getAnimationFrams</a> () const</td></tr>
<tr class="memdesc:a4075d2ed258206ffd210dacfea81de88"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取动画帧数组  <a href="#a4075d2ed258206ffd210dacfea81de88">更多...</a><br /></td></tr>
<tr class="separator:a4075d2ed258206ffd210dacfea81de88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4d84bdc8fac56c0a0dfc5e4a881f41d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#ae4d84bdc8fac56c0a0dfc5e4a881f41d">getDisplayTimes</a> () const</td></tr>
<tr class="memdesc:ae4d84bdc8fac56c0a0dfc5e4a881f41d"><td class="mdescLeft">&#160;</td><td class="mdescRight">该动画播放多少次  <a href="#ae4d84bdc8fac56c0a0dfc5e4a881f41d">更多...</a><br /></td></tr>
<tr class="separator:ae4d84bdc8fac56c0a0dfc5e4a881f41d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a305f0f7d3c8c301810b8b0bf769ea607"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a305f0f7d3c8c301810b8b0bf769ea607">setDisplayTimes</a> (int times)</td></tr>
<tr class="memdesc:a305f0f7d3c8c301810b8b0bf769ea607"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置播放的次数  <a href="#a305f0f7d3c8c301810b8b0bf769ea607">更多...</a><br /></td></tr>
<tr class="separator:a305f0f7d3c8c301810b8b0bf769ea607"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93b12fba66af3084053d09ca4208955b"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a93b12fba66af3084053d09ca4208955b">getDisplayOnceDuration</a> () const</td></tr>
<tr class="memdesc:a93b12fba66af3084053d09ca4208955b"><td class="mdescLeft">&#160;</td><td class="mdescRight">该完整动画播放一次需要的时间  <a href="#a93b12fba66af3084053d09ca4208955b">更多...</a><br /></td></tr>
<tr class="separator:a93b12fba66af3084053d09ca4208955b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a334d27e813a403b187f42af24429458c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a334d27e813a403b187f42af24429458c">getFrameCount</a> () const</td></tr>
<tr class="memdesc:a334d27e813a403b187f42af24429458c"><td class="mdescLeft">&#160;</td><td class="mdescRight">动画的帧数  <a href="#a334d27e813a403b187f42af24429458c">更多...</a><br /></td></tr>
<tr class="separator:a334d27e813a403b187f42af24429458c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f07ffece0f507d1a5848892fa2c9a51"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a7f07ffece0f507d1a5848892fa2c9a51">getFrameDealy</a> (int index) const</td></tr>
<tr class="memdesc:a7f07ffece0f507d1a5848892fa2c9a51"><td class="mdescLeft">&#160;</td><td class="mdescRight">对应帧的延时  <a href="#a7f07ffece0f507d1a5848892fa2c9a51">更多...</a><br /></td></tr>
<tr class="separator:a7f07ffece0f507d1a5848892fa2c9a51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a239a46827191329a9189c958ece1b2ec"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a239a46827191329a9189c958ece1b2ec">isRestOriginalFrame</a> () const</td></tr>
<tr class="memdesc:a239a46827191329a9189c958ece1b2ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">在动画播放完毕 是否回到原始的精灵帧  <a href="#a239a46827191329a9189c958ece1b2ec">更多...</a><br /></td></tr>
<tr class="separator:a239a46827191329a9189c958ece1b2ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afef6fc56486978550a256648a50d557e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#afef6fc56486978550a256648a50d557e">setRestOriginalFrame</a> (bool rest)</td></tr>
<tr class="memdesc:afef6fc56486978550a256648a50d557e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置动画播放完是否回到原始的精灵帧  <a href="#afef6fc56486978550a256648a50d557e">更多...</a><br /></td></tr>
<tr class="separator:afef6fc56486978550a256648a50d557e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6c4b3b18dcb7ca658a79b9c532bbb02"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#aa6c4b3b18dcb7ca658a79b9c532bbb02">addFrames</a> (const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;frames)</td></tr>
<tr class="memdesc:aa6c4b3b18dcb7ca658a79b9c532bbb02"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加动画帧数组精灵帧  <a href="#aa6c4b3b18dcb7ca658a79b9c532bbb02">更多...</a><br /></td></tr>
<tr class="separator:aa6c4b3b18dcb7ca658a79b9c532bbb02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bd070dbf803fa2206ece184217d0d0b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a7bd070dbf803fa2206ece184217d0d0b">addFrame</a> (const AnimationFrameSharedPtr &amp;frame)</td></tr>
<tr class="memdesc:a7bd070dbf803fa2206ece184217d0d0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加动画帧  <a href="#a7bd070dbf803fa2206ece184217d0d0b">更多...</a><br /></td></tr>
<tr class="separator:a7bd070dbf803fa2206ece184217d0d0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a5bf69d0b02656241b5dafd6c1b135feb"><td class="memItemLeft" align="right" valign="top">static AnimationSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a5bf69d0b02656241b5dafd6c1b135feb">create</a> ()</td></tr>
<tr class="memdesc:a5bf69d0b02656241b5dafd6c1b135feb"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建动画  <a href="#a5bf69d0b02656241b5dafd6c1b135feb">更多...</a><br /></td></tr>
<tr class="separator:a5bf69d0b02656241b5dafd6c1b135feb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eb4adaacc0104489f63e9c8e92296aa"><td class="memItemLeft" align="right" valign="top">static AnimationSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#a9eb4adaacc0104489f63e9c8e92296aa">create</a> (const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;frames, int times=1)</td></tr>
<tr class="memdesc:a9eb4adaacc0104489f63e9c8e92296aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建动画  <a href="#a9eb4adaacc0104489f63e9c8e92296aa">更多...</a><br /></td></tr>
<tr class="separator:a9eb4adaacc0104489f63e9c8e92296aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2948fb69964d5820ccbb944187a6ca7"><td class="memItemLeft" align="right" valign="top">static AnimationSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_animation.html#aa2948fb69964d5820ccbb944187a6ca7">create</a> (const std::vector&lt; SpriteFrameSharedPtr &gt; &amp;frames, float delay=0.0f, int times=1)</td></tr>
<tr class="memdesc:aa2948fb69964d5820ccbb944187a6ca7"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建动画  <a href="#aa2948fb69964d5820ccbb944187a6ca7">更多...</a><br /></td></tr>
<tr class="separator:aa2948fb69964d5820ccbb944187a6ca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a8b88933b9e5de3ba1fd3dceee9391192"><td class="memItemLeft" align="right" valign="top"><a id="a8b88933b9e5de3ba1fd3dceee9391192"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> ()</td></tr>
<tr class="separator:a8b88933b9e5de3ba1fd3dceee9391192"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a97a0af22657a7f7aa359a422f11c26"><td class="memItemLeft" align="right" valign="top"><a id="a7a97a0af22657a7f7aa359a422f11c26"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>initWithAnimationFrame</b> (const std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_animation_frame.html">AnimationFrame</a> &gt;&gt; &amp;frams, int times)</td></tr>
<tr class="separator:a7a97a0af22657a7f7aa359a422f11c26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b3571e3adefe0139a8af879979e8dfb"><td class="memItemLeft" align="right" valign="top"><a id="a6b3571e3adefe0139a8af879979e8dfb"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>initWithSpriteFrame</b> (const std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_sprite_frame.html">SpriteFrame</a> &gt;&gt; &amp;frames, float delay, int times)</td></tr>
<tr class="separator:a6b3571e3adefe0139a8af879979e8dfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>帧动画 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7bd070dbf803fa2206ece184217d0d0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bd070dbf803fa2206ece184217d0d0b">&#9670;&nbsp;</a></span>addFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Animation::addFrame </td>
          <td>(</td>
          <td class="paramtype">const AnimationFrameSharedPtr &amp;&#160;</td>
          <td class="paramname"><em>frame</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加动画帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>AnimationFrameSharedPtr &amp; frame </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aa6c4b3b18dcb7ca658a79b9c532bbb02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6c4b3b18dcb7ca658a79b9c532bbb02">&#9670;&nbsp;</a></span>addFrames()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Animation::addFrames </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;&#160;</td>
          <td class="paramname"><em>frames</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加动画帧数组精灵帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::vector&lt;AnimationFrameSharedPtr&gt; &amp; frames 动画帧数组 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a5bf69d0b02656241b5dafd6c1b135feb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bf69d0b02656241b5dafd6c1b135feb">&#9670;&nbsp;</a></span>create() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationSharedPtr Animation::create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建动画 </p>
<dl class="section return"><dt>返回</dt><dd>AnimationSharedPtr </dd></dl>

</div>
</div>
<a id="a9eb4adaacc0104489f63e9c8e92296aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9eb4adaacc0104489f63e9c8e92296aa">&#9670;&nbsp;</a></span>create() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationSharedPtr Animation::create </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;&#160;</td>
          <td class="paramname"><em>frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::vector&lt;AnimationFrameSharedPtr&gt; &amp; frames 动画帧数组 </td></tr>
    <tr><td class="paramname">int</td><td>times 播放的次数 如果为 <em>-1</em> 则代表动画一直执行 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>AnimationSharedPtr </dd></dl>

</div>
</div>
<a id="aa2948fb69964d5820ccbb944187a6ca7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2948fb69964d5820ccbb944187a6ca7">&#9670;&nbsp;</a></span>create() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationSharedPtr Animation::create </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; SpriteFrameSharedPtr &gt; &amp;&#160;</td>
          <td class="paramname"><em>frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>delay</em> = <code>0.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::vector&lt;SpriteFrameSharedPtr&gt; &amp; frames 精灵帧数组 </td></tr>
    <tr><td class="paramname">float</td><td>delay 每帧的延迟 </td></tr>
    <tr><td class="paramname">int</td><td>times 播放的次数 如果为 <em>-1</em> 则代表动画一直执行 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>AnimationSharedPtr </dd></dl>

</div>
</div>
<a id="a4075d2ed258206ffd210dacfea81de88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4075d2ed258206ffd210dacfea81de88">&#9670;&nbsp;</a></span>getAnimationFrams()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;AnimationFrameSharedPtr&gt;&amp; Animation::getAnimationFrams </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取动画帧数组 </p>
<dl class="section return"><dt>返回</dt><dd>const std::vector&lt;std::shared_ptr&lt;AnimationFrame&gt;&gt;&amp; </dd></dl>

</div>
</div>
<a id="a93b12fba66af3084053d09ca4208955b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93b12fba66af3084053d09ca4208955b">&#9670;&nbsp;</a></span>getDisplayOnceDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float Animation::getDisplayOnceDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>该完整动画播放一次需要的时间 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="ae4d84bdc8fac56c0a0dfc5e4a881f41d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4d84bdc8fac56c0a0dfc5e4a881f41d">&#9670;&nbsp;</a></span>getDisplayTimes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Animation::getDisplayTimes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>该动画播放多少次 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a334d27e813a403b187f42af24429458c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a334d27e813a403b187f42af24429458c">&#9670;&nbsp;</a></span>getFrameCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Animation::getFrameCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>动画的帧数 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a7f07ffece0f507d1a5848892fa2c9a51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f07ffece0f507d1a5848892fa2c9a51">&#9670;&nbsp;</a></span>getFrameDealy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float Animation::getFrameDealy </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>对应帧的延时 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>index 帧的索引 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a239a46827191329a9189c958ece1b2ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a239a46827191329a9189c958ece1b2ec">&#9670;&nbsp;</a></span>isRestOriginalFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Animation::isRestOriginalFrame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在动画播放完毕 是否回到原始的精灵帧 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a305f0f7d3c8c301810b8b0bf769ea607"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a305f0f7d3c8c301810b8b0bf769ea607">&#9670;&nbsp;</a></span>setDisplayTimes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Animation::setDisplayTimes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置播放的次数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>times 播放的次数 -1 为 一直播放 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="afef6fc56486978550a256648a50d557e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afef6fc56486978550a256648a50d557e">&#9670;&nbsp;</a></span>setRestOriginalFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Animation::setRestOriginalFrame </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>rest</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置动画播放完是否回到原始的精灵帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bool</td><td>rest 是否重置为原始精灵帧 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 该属性默认为 <em>ture</em> </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/action/<a class="el" href="_animate_8h_source.html">Animate.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
